package com.tz.service.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tz.bean.TzParams;
import com.tz.bean.User;
import com.tz.dao.user.IUserMapper;
import com.tz.service.user.IUserService;

@Service
public class UserServiceImpl implements IUserService {
	
	@Autowired
	private IUserMapper userMapper;
	
	@Override
	public User getLogin(TzParams params) {
		return userMapper.getLogin(params);
	}

	@Override
	public List<User> findUsers(TzParams params) {
		return userMapper.findUsers(params);
	}

	@Override
	public List<User> findDetail(TzParams params) {
		return userMapper.findDetail(params);
	}

	@Override
	public int count(TzParams params) {
		return userMapper.count(params);
	}
	
	@Override
	public int num(TzParams params){
		return userMapper.num(params);
	}

	@Override
	public int add(TzParams params) {
		return userMapper.add(params);
	}

	@Override
	public int delete(TzParams params) {
		return userMapper.delete(params);
	}

	@Override
	public int update(TzParams params) {
		return userMapper.update(params);
	}
	
}
